﻿<%@ Page Title="Make Reservation" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="MakeReservation.aspx.cs" Inherits="TouristAgencyAsp.MakeReservation" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <asp:Repeater ID="toursRepeater" runat="server">
        <HeaderTemplate><h2>Select tour for your reservation: </h2></HeaderTemplate>
        <ItemTemplate>
            <div class="itemTemp">
                <a href="MakeReservation.aspx?tourId=<%# Eval("TourId") %>">
                    <b>Tour Id: <%# Eval("TourId") %></b>
                    <br />
                    Start Date: <%# Eval("StartDate", "{0:dd/MM/yyyy}") %>
                    <br />
                    End Date: <%# Eval("EndDate", "{0:dd/MM/yyyy}")%>
                    <br />
                    Destination:  <%# Eval("Destination.Destination1") %>                           
                    <br />
                    Price for one person: <%# Eval("Price", "{0:c}") %>
                    <br />
                </a>
            </div>  
        </ItemTemplate>
    </asp:Repeater>

    <b><asp:Label ID="tourIdLbl" runat="server" Text=""></asp:Label></b>
    <br />
    <asp:Label ID="startDateLbl" runat="server" Text=""></asp:Label>
    <br />
    <asp:Label ID="endDateLbl" runat="server" Text=""></asp:Label>
    <br />
    <asp:Label ID="destinationLbl" runat="server" Text=""></asp:Label>
    <br />
    <asp:Label ID="boardLbl" runat="server" Text=""></asp:Label>
    <br />
    <asp:Label ID="meanLbl" runat="server" Text=""></asp:Label>
    <br />
    <asp:Label ID="hotelFacLbl" runat="server" Text=""></asp:Label>
    <br />
    <asp:Label ID="priceLbl" runat="server" Text=""></asp:Label>
    <br />  
    <div class="buttonTwo">
        <asp:LinkButton ID="createBtn" runat="server" Visible="false"
            onclick="createBtn_Click">Create Reservation</asp:LinkButton>
    </div>
    <div class="buttonTwo">
        <asp:LinkButton ID="addBtn" runat="server" Visible="false" 
            onclick="addBtn_Click">Add person</asp:LinkButton>
    </div>
</asp:Content>
